import window from './window';

do { window::mount Root };

const Root: ui::Component :=
    \ selection := use { ui::State::[String] 'foo' },
    { { ui::StyledContainer ['container'] } [
        { { ui::StyledContainer ['row'] } [
            { ui::Select (selection, [('foo','Foo'),('bar','Bar'),('42','42')]) },
            { ui::Label selection.{watch} }
        ] },
        { ui::Button ('reset', (selection <- 'foo')) }
    ] };
